/**
  ******************************************************************************
  * @file    ledapp.c
  * @author  yan 
  * @version 1.0
  * @date    2016-12-02
  * @brief   LED status control program, used to display the working state
  ******************************************************************************
	*/
  
  
/** @defgroup LED_APP
 	* @{
	 */
#include <rtthread.h>

#include "ledapp.h"
#include "led.h"
#include "string.h"

/** @defgroup LED_APP_Functions
 	* @{
	 */
void led_thread_entry(void* parameter)
{
    unsigned int count=0;
  
    rt_hw_led_init();
  
    while (1)
    {
        /* led1 on */
        count++;
        rt_hw_led_on(0);
        rt_thread_delay( RT_TICK_PER_SECOND/2 ); /* sleep 0.5 second and switch to other thread */
        
        /* led1 off */

        rt_hw_led_off(0);
        rt_thread_delay( RT_TICK_PER_SECOND/2 );
    }
}

/**	
	*	@}
	*/

/**	
	*	@}
	*/
  


